package ywpt.service.config;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.JiguanInfo;

public interface JiguanService {

	public abstract JiguanInfo getJiguanInfoById(Long id);

	public abstract List<JiguanInfo> getJiguanInfos();

	public abstract int getJiguanInfoCountByCriteria(DetachedCriteria query);

	public abstract List<JiguanInfo> getJiguanInfos(
			DetachedCriteria query, int pageSize, int startIndex);

	public abstract void removeJiguanInfo(Long id);

	public abstract void updateJiguanInfo(JiguanInfo jiguanInfo);

	public abstract void saveJiguanInfo(JiguanInfo jiguanInfo);

	public abstract String createJiguanCode();
	
	public abstract List<JiguanInfo> getJiguanInfos(DetachedCriteria query);

	public abstract int getJiguansCountByName(String jiguanName);
	
	public abstract List<JiguanInfo> getJiguanByJiguanName(String jiguanName, int start,
			int size);
}
